from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^image_codes/(?P<uuid>[\w-]+)/$', views.ImageCodeView.as_view(), name='imagecode'),
    url(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SmsCodeView.as_view(), name='smscode'),
    # 找回密码第一步验证用户名
    url(r'^accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/sms/token/$', views.UsernameCodeView.as_view(), name='usernamecode'),
    # 找回密码第二步发送短信验证码
    url(r'^sms_codes/$', views.MobileSmsView.as_view(), name='mobilesms'),
    # 找回密码第三步验证短信验证码
    url(r'^accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/password/token/$', views.PwdChangeView.as_view(), name='pwdchange'),

]

